home *** CD-ROM | disk | FTP | other *** search
/ Experimental BBS Explossion 3 / Experimental BBS Explossion III.iso / games / nhak_src.zip / ATTRIB.H < prev    next >
C/C++ Source or Header  |  1993-03-16  |  823b  |  38 lines

  1. /*
  2.  *    attrib.h - Header file for character class processing.
  3.  *
  4.  *    Copyright 1988, M. Stephenson
  5.  */
  6. /* NetHack may be freely redistributed.  See license for details. */
  7.  
  8. #ifndef ATTRIB_H
  9. #define ATTRIB_H
  10.  
  11. #define    A_STR    0
  12. #define    A_INT    1
  13. #define    A_WIS    2
  14. #define    A_DEX    3
  15. #define    A_CON    4
  16. #define    A_CHA    5
  17.  
  18. #define A_MAX    6    /* used in rn2() selection of attrib */
  19.  
  20. #define    ABASE(x)    (u.acurr.a[x])
  21. #define ABON(x)        (u.abon.a[x])
  22. #define ACURR(x)    (schar) acurr(x)
  23. /* should be: */
  24. /* #define    ACURR(x)    (ABON(x) + ATEMP(x) + (u.umonnum == -1) ? ABASE(x) : MBASE(x)) */
  25. #define    MCURR(x)    (u.macurr.a[x])
  26. #define    AMAX(x)        (u.amax.a[x])
  27. #define    MMAX(x)        (u.mamax.a[x])
  28.  
  29. #define    ATEMP(x)    (u.atemp.a[x])
  30. #define    ATIME(x)    (u.atime.a[x])
  31.  
  32. struct    attribs {
  33.  
  34.     schar    a[A_MAX];
  35. };
  36.  
  37. #endif /* ATTRIB_H /* */
  38.